home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 34
/
Aminet 34 (2000)(Schatztruhe)[!][Dec 1999].iso
/
Aminet
/
comm
/
irc
/
cybershiela.lha
/
cs
/
tempconvert.amirx
< prev
next >
Wrap
Text File
|
1999-08-02
|
808b
|
40 lines
/* Zonkerz TempConvert Beta 1
for Amirc 2.0+
16 January 1999
*/
options results
parse arg temp cf
numeric digits 4
if temp="?" then signal HELP
if temp="" then signal INVALID
if cf="" then signal INVALID
if upper(cf)="F" then signal FAREN
if upper(cf)="C" then signal CELCIUS
/* convert to Celcius */
FAREN:
temp=temp
z=((temp-32)*5)/9
'say 6 'temp' F = 'z' C'
exit
/* convert to Celcius */
CELCIUS:
z=((temp*9)/5)+32
'say 6 'temp' C = 'z' F'
exit
INVALID:
'say Invalid Argument !temp value F or C !temp ? for help'
exit
HELP:
'say 3Usage !temp [deg] [C or F]'
'say 3To convert from Celcius to Fahrenheit put in the Celcius Temperature. Example 5 C you would type !temp 5 C'
'say 3To convert fromFahrenheit to Celcius put in the Fahrenheit Temperature. Example 5 F would type !temp 5 F'
exit